#include "minFlips.h"

int main()
{
    int min_flips = minFlips();
    if(min_flips == -1){
        cout<<"No solution exists"<<endl;
        return -1;
    }
    cout<<min_flips<<endl;
    getchar();
    getchar();
    return 0;
}